package com.xinsoft.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 应收账款
 * @TableName fms_accounts_receivable
 */
@TableName(value ="fms_accounts_receivable")
@Data
public class FmsAccountsReceivable implements Serializable {
    /**
     * 应收账款ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 销售订单ID
     */
    @TableField(value = "sale_id")
    private Integer saleId;

    /**
     * 应收日期
     */
    @TableField(value = "receive_date")
    private Date receiveDate;

    /**
     * 应收金额
     */
    @TableField(value = "receive_account")
    private BigDecimal receiveAccount;

    /**
     * 已收金额
     */
    @TableField(value = "account_get")
    private BigDecimal accountGet;

    /**
     * 未收金额
     */
    @TableField(value = "account_outstanding")
    private BigDecimal accountOutstanding;

    /**
     * 收款方式 字典
     */
    @TableField(value = "pay_type")
    private Integer payType;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}